package com.smec.moblie.control;

import com.smec.moblie.bean.Gps;
import com.smec.moblie.bean.MaintenanceBean;
import com.smec.moblie.util.imageuploader.FndResource;

/**
 * 消息通知中心
 * Created by sunyubo on 15/12/9.
 */
public class EventCenter {
    /***
     * 通知主界面toast
     *
     * @author syubo
     */
    public static class ToastMessage {
        String message;

        public ToastMessage(String message) {
            this.message = message;
        }

        public String getMessage() {
            return message;
        }
    }

    public static class ChangeList {
        int listId;

        public ChangeList(int listId) {
            this.listId = listId;
        }

        public int getListId() {
            return listId;
        }
    }

    public static class ClickIndividuationItem {
        int listId;

        public ClickIndividuationItem(int listId) {
            this.listId = listId;
        }

        public int getListId() {
            return listId;
        }
    }

    public static class ClickMantrList {
        int listId;

        public ClickMantrList(int listId) {
            this.listId = listId;
        }

        public int getListId() {
            return listId;
        }
    }

    /**
     * 获取是否是保养已完成工单
     */
    public static class ChangeIsFinsish {
        boolean isfinished;

        public ChangeIsFinsish(boolean isfinished) {
            this.isfinished = isfinished;
        }

        public boolean getIsFinished() {
            return isfinished;
        }
    }

    /**
     * ChangeList(position)
     * 改变侧边栏数量
     */
    public static class ChangeLeftItems {
//        int num;
//        boolean isfinshed;

        public ChangeLeftItems() {
//            this.num = num;
//            this.isfinshed = isfinshed;
        }

//        public int getNum() {
//            return num;
//        }
//
//        public boolean getIsfinished() {
//            return isfinshed;
//        }
    }

    /**
     * 地图返回数据
     */
    public static class MapBack {
        double longitude;
        double latitude;
        int position;

        public MapBack(double longitude, double latitude, int position) {
            this.longitude = longitude;
            this.latitude = latitude;
            this.position = position;
        }

        public Gps getMapBack() {
            Gps gps = new Gps(latitude, longitude);
            return gps;
        }

        public int getPosition() {
            return position;
        }
    }

    /**
     * 弹出挡板
     */
    public static class showBaffleDialog {
        public showBaffleDialog() {

        }
    }

    /**
     * 选择月份
     */
    public static class SelectMonth {
        String sel_month;

        public SelectMonth(String sel_month) {
            this.sel_month = sel_month;
        }

        public String getMonth() {
            return sel_month;
        }
    }

    /**
     * 筛选日期
     */
    public static class SelectDate {
        String sel_date;

        public SelectDate(String sel_date) {
            this.sel_date = sel_date;
        }

        public String getDate() {
            return sel_date;
        }
    }

    /**
     * 取消筛选日期
     */
    public static class CancelSelectDate {
        public CancelSelectDate() {

        }
    }

    /**
     * 更新list单条数据
     */
    public static class UpdateOneRow {
        MaintenanceBean maintenanceBean;
        int position;

        public UpdateOneRow(MaintenanceBean maintenanceBean, int position) {
            this.maintenanceBean = maintenanceBean;
            this.position = position;
        }

        public MaintenanceBean getMaintenanceBean() {
            return maintenanceBean;
        }

        public int getPosition() {
            return position;
        }
    }

    /**
     * 单张照片上传完成
     */
    public static class SingleImageUploadSuccess {
        FndResource resource;

        public SingleImageUploadSuccess(FndResource resource) {
            this.resource = resource;
        }

        public FndResource getSuccessFndResource() {
            return resource;
        }
    }

    /**
     * 全部照片上传完成
     */
    public static class AllImageUploadSuccess {
        public AllImageUploadSuccess() {

        }

    }

    /**
     * 照片上传失败
     */
    public static class UploadImageFailed {
        public UploadImageFailed() {

        }
    }

    /**
     * 删除场景照
     */
    public static class DeleteScenePhoto {
        public DeleteScenePhoto() {

        }
    }

    /**
     * 删除场景照
     */
    public static class closeDialog {
        public closeDialog() {

        }
    }

    /**
     * 上传时间信息
     */
    public static class UpdateTime {
        private MaintenanceBean maintenanceBean;

        public UpdateTime(MaintenanceBean maintenanceBean) {
            this.maintenanceBean = maintenanceBean;
        }

        public MaintenanceBean getMaintenanceBean() {
            return maintenanceBean;
        }
    }

    public static class SetTime {
        public SetTime() {

        }
    }

    /**
     * 刷新列表后台数据
     */
    public static class ReflashList {
        public ReflashList() {

        }
    }

    /**
     * 技术通知单列表刷新成功
     */
    public static class TechnicalNoticeListBackSuccess {
        public TechnicalNoticeListBackSuccess() {

        }
    }

    /**
     * 技术通知单列表刷新失败
     */
    public static class TechnicalNoticeListBackFailed {
        String msg;

        public TechnicalNoticeListBackFailed(String msg) {
            this.msg = msg;
        }

        public String getMsg() {
            return msg;
        }
    }

    /**
     * 保养作业详情列表刷新成功
     */
    public static class FeedBackListBackSuccess {
        public FeedBackListBackSuccess() {

        }
    }

    /**
     * 个性化保养-提交反馈项失败
     */
    public static class submitFeedbackListFailed {
        String msg;

        public submitFeedbackListFailed(String msg) {
            this.msg = msg;
        }

        public String getMsg() {
            return msg;
        }
    }

    /**
     * 个性化保养-提交反馈项成功
     */
    public static class submitFeedbackListSuccess {
        public submitFeedbackListSuccess() {

        }
    }

    /**
     * 刷新个性化保养列表
     */
    public static class ReflashTechnicalNoticeList {
        public ReflashTechnicalNoticeList() {

        }
    }

    /**
     * 保养作业详情列表刷新失败
     */
    public static class FeedBackListBackFailed {
        String msg;

        public FeedBackListBackFailed(String msg) {
            this.msg = msg;
        }

        public String getMsg() {
            return msg;
        }
    }

    /**
     * 技术通知单顶部筛选通知
     */
    public static class TopSelector {
        String type;

        public TopSelector(String type) {
            this.type = type;
        }

        public String getType() {
            return type;
        }
    }

    /**
     * 保养作业详情列表刷新失败
     */
    public static class ChangeTechnicalNoticeList {
        boolean isCompleted;

        public ChangeTechnicalNoticeList(boolean isCompleted) {
            this.isCompleted = isCompleted;
        }

        public boolean getIsCompleted() {
            return isCompleted;
        }
    }

    /**
     * 获取照片路径
     */
    public static class GetImagePath {
        String path;
        int position;

        public GetImagePath(String path, int position) {
            this.path = path;
            this.position = position;
        }

        public String getPath() {
            return path;
        }

        public int getPosition() {
            return position;
        }
    }
}
